package com.yunsc.content.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.common.validator.ValidationGroups;
import com.yunsc.content.entity.YunscArticleEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-06-05 21:26
 */
@Data
public class ArticleDTO {
    @JsonProperty("articleId")
    @NotNull(message = "文章ID不能为空", groups = {ValidationGroups.Delete.class, ValidationGroups.Update.class})
    private Integer articleId;
    private YunscArticleEntity form;
}
